package com.nuonuo.config;

import com.nuonuo.service.AService;
import com.nuonuo.service.BService;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author duan
 * @version 1.0
 * @date 2023/10/25 13:09
 */

@Configuration
public class WebConfig {

    @Bean
    @ConditionalOnBean(AService.class)
    public BService bService() {
        return new BService();
    }
}
